package com.test.mongo;


import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document(collection = "user")
public class MGUser {

    @Id
    private ObjectId id;

    private String name;

    private String age;
}
